from manim import *

# manim -qm -v WARNING MainBase.py
class MainBase(Scene):
    def construct(self):
        square1=Square(side_length=2, color=RED, fill_opacity=0).shift(LEFT*3)
        self.add(square1)
        
        square2=Square(side_length=2, color=RED, fill_opacity=0).shift(LEFT*3)
        self.add(square2)
        
        # square.add_n_more_submobjects(4)
        
        circle=Circle(radius=3, color=RED, fill_opacity=0).shift(RIGHT*3)
        self.add(circle)
        
        # points=square.get_points()
        # i=0
        # for p in points:
        #     dot=Dot(p, color=BLUE)
        #     text=Text(str(i), color=BLUE).scale(0.3)
        #     text.next_to(dot, direction=RIGHT, buff=0.1)
        #     self.add(dot, text)
        #     i+=1
        
        # points=circle.get_points()
        # i=0
        # for p in points:
        #     dot=Dot(p, color=BLUE)
        #     text=Text(str(i), color=BLUE).scale(0.3)
        #     text.next_to(dot, direction=RIGHT, buff=0.1)
        #     self.add(dot, text)
        #     i+=1
        
        # self.play(Transform(square, circle), run_time=2, run_func=linear)
        
        self.play(Transform(square1, circle), run_time=2, run_func=linear)
        
        # for i in range(4):
        #     points[i][0]+=1
        
        self.wait()
        
    if __name__ == "__main__":
        scene = MainBase()
        scene.render()